package com.ym521.facecheck.core

import android.graphics.Bitmap
import com.ym521.facecheck.callback.FaceCheckCallback
import org.opencv.core.Mat
import org.opencv.core.Size
import org.opencv.objdetect.FaceDetectorYN

/**
 *@author Ym
 *E-mail: 2435970206@qq.com
 *createTime:2024/6/22
 *explain:
 * 图片角度兼容引擎
 */
internal interface IImageAngleEngine {

    fun initMat(detector: FaceDetectorYN):IImageAngleEngine

    fun setFaceCheckCallBack(callback: FaceCheckCallback)

    fun setFaceDetectorSize(size: Size)

    fun isFaceDetectorSizeSetting():Boolean

    suspend fun imageAngleHandler(bgaMat: Mat)

    suspend fun imageAngleHandler2(image:Bitmap,rgbaMat:Mat,bgaMat:Mat)

    fun release()

}